package org.hcyspartnoc.luoxin.common.core.configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "service")
public class ServiceConfiguration {
    private Order order;
    private Chat chat;

    @Data
    @Configuration
    @ConfigurationProperties(prefix = "service.order")
    public static class Order {
        private Long expires;
    }

    @Data
    @Configuration
    @ConfigurationProperties(prefix = "service.chat")
    public static class Chat {
        private Long messageExpires;
        private String publicPrompt;
    }
}
